package com.edu.his.controller;

import com.edu.his.domain.CheckRequest;
import com.edu.his.domain.MedicalTechnology;
import com.edu.his.service.MedicalTechnologyService;
import com.edu.his.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 描述：
 * 创建人：飘
 * 创建时间：2024/12/19
 **/
@RestController
@RequestMapping("/medicaltechnology")
@CrossOrigin(value = "*",maxAge = 3600)
public class MedicalTechnologyController {
    @Autowired
    private MedicalTechnologyService medicalTechnologyService;

    @PostMapping("/select")
    public R select(MedicalTechnology medicalTechnology) {
        return  this.medicalTechnologyService.select(medicalTechnology);
    }

    //
    @PostMapping("/selectbyregiserid")
    public   R selectByRegiserId(@RequestBody CheckRequest checkRequest)
    {
        return  this.medicalTechnologyService.selectByRegiserId(checkRequest);
    }
}
